home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Apple Guide / Engineering / RenoDB Library / RenoData / RenoData.r < prev    next >
Encoding:
Text File  |  1994-05-18  |  11.9 KB  |  393 lines  |  [TEXT/MPS ]

  1. // Copyright ©1993 Apple Computer, Inc. All rights reserved.
  2. // Author: John R. Powers, III and Matt Powers
  3. // Date:    24-May-93
  4.  
  5. /***********************************************************************
  6.  
  7. 14-Jan-92    changed MOOF to MOOT (CPlusShapesApp)
  8. 15-Jan-92    eliminate some topics
  9. 20-Jan-02    moved TMPL resources into RenoDataTMPL.r file
  10. 05-Feb-92    added kIndexScope
  11.             revised kAreasScope to include topic DBRef/Id
  12.             added more kTopicScope and kResTopic
  13. 08-Feb-92    add kResContext
  14. 12-Feb-92    place data files including this one in their own folder.
  15.             add kResConditionSkip
  16. 02-Mar-92    add kSkipIf and kShowIf
  17.             add kResMakeSure, kResEvent
  18. 20-Mar-92    change topic script parameter from string to integer
  19. 24-Mar-92    add kResHot
  20. 30-Mar-92    add kResOptBtn
  21.             add kResTopic 3010 with kHuhTopic 3011
  22. 01-Apr-92    add kResCoachMark
  23. 13-Apr-92    remove sequence number field from kTopicScope user data.
  24.             add slider data for optional wide slider.
  25.             remove kResStartup.
  26. 14-Apr-92    add fields to kResStartupScope
  27. 20-Apr-92    add kResFormat
  28. 22-Apr-92    phase two database
  29.             revise vers resources
  30.             add kResHeader and kResTopicL
  31.             revise kTopicScope, kAreasScope, kIndexScope.
  32.             use simplified data set (with an include).
  33.             add #define for formats
  34.             moved slider data to Reno.r
  35. 27-Apr-92    added kResPrompt defaults.
  36. 06-May-92    use "Content.r" for the content
  37.             add kAppRelease for the vers "Non-final release" byte
  38.             move AccWin STR# prompts to Reno.r
  39. 24-May-92    add quietRenoStat startup item
  40. 27-May-92    moved RenoResources.h to this folder.
  41.             make 'vers' resources into a default.
  42. 12-Jun-92    add kResPreWinBtn for kHuhBtnId.
  43. 28-Jun-92    add kResEvent for kHuhBtnEventId.
  44.             add resource names.
  45. 13-Jul-92    add kPreFormatScroll format
  46. 15-Jul-92    add message target to kStartupScope (acSU)
  47. 30-Jul-92    set default message target to RenoStat2 (RenoStatII).
  48. 31-Jul-92    change RenoResources.h to RenoData.h.
  49. 14-Oct-92    1.0a6    revisions to kStartupScope resource.
  50. 28-Jan-93    Following formatting changes:
  51.              1. Follow every pstring with an align word to insure
  52.                  a resource with an even number of bytes.
  53.              2. kResFormat: remove field #2, the integer font ID number,
  54.                  add a pstring for the font name as the last field.
  55.              3. (No change to kStartupScope.)
  56.                 Move kAppMinSeqNum from the kDataVersionBytes
  57.                 used in the database 'vers' resources
  58.                 to the seq.no. field of the kResVersionInfo resource.
  59.              4. kResTopic: add reserved fields.
  60.              5. kResTopic: replace the topic title pstring with a TEXT ID number.
  61.              6.    kResTopic: add a maximum panel height field.
  62.              7.    Add kResVersionInfo resource.
  63.              8.    kResCoachMark and kResEvent: Add Finder and TeachText as target labels.
  64.              9.    Replace Howdy STR# with TEXT resource (ID=1003 and 1004).
  65.             10. Correct the RenoButton location offset (Radar #1043437.)
  66.             11.    Update all templates (TMPL).
  67. 24-Feb-93    Added Go Start Button Event and Button Definition Resources. Added __BUTTONS__
  68.             ifndef. Put huh and go start button graphics in Buttons.rsrc, not in extension.
  69. 25-Feb-93    Don't include Buttons.rsrc's ckid resource when rezzing this file!
  70. 01-Mar-93    Added GoStart and Huh button balloon text 'STR ' resources. 
  71. 24-May-93 1.0b3 JRP "Type Here" removed from Look-For string. Radar #1085265.
  72. 08-May-94 1.2b13e1 JRP    Change kCopyright and kProgramName
  73.                         to kDataCopyright and kDataProgramName
  74.                         to avoid label conflicts in the 'vers' resource.
  75.                         Replace RenoStat as message target with Nevada.
  76. 14-May-94 1.2b15e1 PVC    Add YOMI autosort bit to startupprefs resource.
  77.  
  78. ***********************************************************************/
  79.  
  80. // Resource data used by Reno
  81.  
  82. #ifndef __TYPES.R__
  83.     #include "Types.r"
  84. #endif
  85.  
  86. #ifndef __SYSTYPES.R__
  87.     #include "SysTypes.r"            // Needed for version resource
  88. #endif
  89.  
  90. #ifndef __RENODATA__
  91.     #include "RenoData.h"            // Common with .r files
  92. #endif
  93.  
  94. #ifndef __RENODATATYPES__
  95.     #include "RenoDataTypes.r"        // Reno's own data types
  96. #endif
  97.  
  98. #ifndef __RENODATATMPL__
  99.     #include "RenoDataTMPL.r"        // TMPLs for RenoData.r
  100. #endif
  101.  
  102. //    -----------------------------------------------------------------------
  103. //    Here's the rest of the data
  104.  
  105. #include "Content.r"
  106.  
  107. //    -----------------------------------------------------------------------
  108. //    Reno's database version information (required).
  109. //    The contents of this resource are defined in RenoData.h.
  110. //    This resource is contained both in Reno and the database.
  111. //    In RenoTheApp, the kAppMinSeqNum is replaced by the kAppSeqNum.
  112. //    05-Feb-93 1.0a14 JRP    New.
  113.  
  114. resource kResVersionInfo (kVersionInfoDataID,
  115.                             "Apple Guide Database Version Info",
  116.                             Purgeable)    {
  117.     kAppMinSeqNum,
  118.     kAppMinVersionString,
  119.     $$Date,
  120.     $$Time,
  121. };
  122.  
  123. //    -----------------------------------------------------------------------
  124. //    Version resource (required)
  125.  
  126. #ifndef __VERS__
  127.  
  128.         // If the version was not defined in the data,
  129.         // the default will be set here.
  130.  
  131. resource 'vers' (1, "Apple Guide Data", purgeable) {        // document
  132.     kDataVersionBytes,
  133.     kDataVersionString,
  134.     "Apple Guide Data "kDataVersionString " " kDataVersionDate
  135.     "\n"kDataCopyright
  136. };
  137.  
  138. resource 'vers' (2, kProgramName, purgeable) {        // program
  139.     kDataVersionBytes,
  140.     kDataProgramName " " kAppMinVersionString,
  141.     kDataProgramName " " kAppMinVersionString
  142. };
  143.  
  144. #endif __VERS__
  145.  
  146. //    -----------------------------------------------------------------------
  147. // Application LOGO (optional)
  148. // If you have both color and black&white logos,
  149. // use ID=kAppLogoId for color, ID=kAppLogoId+1 for B&W.
  150. // If you have only one logo, color or B&W, use ID=kAppLogoId.
  151. // The ID must also match the "application text STR id" in
  152. // the kResAccWinLayout resource.
  153. //    The default location for the kResAccWinLayout resource is Reno.r,
  154. //    but it can be overridden in the data file.
  155.  
  156. #ifndef __APPLOGO__
  157.  
  158. include "ArtApp.rsrc";
  159.  
  160. #endif __APPLOGO__
  161.  
  162. //    -----------------------------------------------------------------------
  163. //    Application Title (optional)
  164. //    The ID of this resource is kAppTextId.
  165. //    The ID of this resource must also match the
  166. //    "application text STR id" in the kResAccWinLayout resource.
  167. //    The default location for the kResAccWinLayout resource is Reno.r,
  168. //    but the resource can be overridden in the data file.
  169. //    07-Dec-92 1.0a8 JRP    Removed content ("Finder"), default to empty string.
  170.  
  171. #ifndef __APPTITLE__
  172.  
  173. resource 'STR ' (kAppTextId, "Default App text", purgeable) {
  174.     ""
  175. };
  176.  
  177. #endif __APPTITLE__
  178.  
  179. //    -----------------------------------------------------------------------
  180. //    Startup preferences (required)
  181.  
  182. #ifndef __STARTUP__
  183.  
  184.         // If the startup was not defined in the data,
  185.         // the defaults will be set here.
  186.  
  187.             // Desired startup preferences.
  188.             // 24-May-93 1.0b3 JRP "Type Here" removed from Look-For string.
  189.  
  190. resource kStartupScope (kStartPrefsID, "Startup prefs", purgeable) {
  191.     0,                    // AccWin (0) or PreWin (topic id number)
  192.     kHowdyV,            // Startup view if AccWin, see RenoData.h for values.
  193.     0,                    
  194.     0,0,0,0,0,0,0,
  195.     autosortOn,            // Index sorts normally (alphabetically, not YOMI)
  196.     0,                    // 0=open PreWin at lower-left, 1=center.
  197.     0,                    // 0=send messages, 1=be quiet.
  198.     0,                    // Reserved for future use.
  199.     Nevada,                // Target signature for messages
  200.     ""                    // Look-For string (default to empty)
  201. };
  202.  
  203. #endif __STARTUP__
  204.  
  205. //    -----------------------------------------------------------------------
  206. //    Text format resources (required)
  207.  
  208. #ifndef __FORMATS__
  209.  
  210.         // If the formats were not defined previously,
  211.         // the defaults will be set here.
  212.  
  213.     resource kResFormat (kPreFormatFull, "Full format", purgeable) {
  214.         teFlushDefault,    // system default
  215.         normal,            // normal face.
  216.         10,                // size
  217.         6,                // top
  218.         11,                // left
  219.         30000,            // bottom (use 30000, Reno will adjust)
  220.         330,            // right
  221.         "Espy Serif"    // Font name
  222.     };
  223.     
  224.     resource kResFormat (kPreFormatTag, "Tag format", purgeable) {
  225.         teFlushRight,    // flush right
  226.         normal,            // normal face, font is bold
  227.         10,                // size
  228.         6,                // top
  229.         0,                // left
  230.         30000,            // bottom (use 30000, Reno will adjust)
  231.         54,                // right
  232.         "Espy Sans Bold"    // Font name
  233.     };
  234.     
  235.     resource kResFormat (kPreFormatBody, "Body format", purgeable) {
  236.         teFlushDefault,    // system default
  237.         normal,            // normal face
  238.         10,                // size
  239.         6,                // top
  240.         65,                // left
  241.         30000,            // bottom (use 30000, Reno will adjust)
  242.         330,            // right
  243.         "Espy Serif"    // Font name
  244.     };
  245.                     // full vertical, left-side
  246.     resource kResFormat (kPreFormatCustom, "Custom format", purgeable) {
  247.         teFlushDefault,    // system default
  248.         normal,            // normal face
  249.         10,                // size
  250.         6,                // top
  251.         11,                // left
  252.         30000,            // bottom (use 30000, Reno will adjust)
  253.         170,            // right
  254.         "Espy Serif"    // Font name
  255.     };
  256.  
  257.     resource kResFormat (kPreFormatScroll, "Scroll format", purgeable) {
  258.         teFlushDefault,    // system default
  259.         normal,            // normal face
  260.         9,                // size (9/13)
  261.         12,                // top
  262.         20,                // left
  263.         142,            // bottom (must use desired value)
  264.         325,            // right
  265.         "Espy Sans"        // Font name
  266.     };
  267.  
  268. #endif __FORMATS__
  269.  
  270. //    -----------------------------------------------------------------------
  271. //    Panel prompt resources (required if any panel prompts)
  272.  
  273. #ifndef __PANEL_PROMPTS__
  274.  
  275.         // If the prompts were not defined previously,
  276.         // the defaults will be set here.  These defaults
  277.         // are from the Reno HID.  To use them, reference
  278.         // resource id #130 for the prompt object.  The
  279.         // following is an example:
  280.         //
  281.         //        resource kResPanel (1008, Purgeable) {
  282.         //            {
  283.         //                kResSTxt, 3001;            // text
  284.         //                kResSTxt, 3002;            // text
  285.         //                kResPrompt, 130;        // Prompt
  286.         //            };
  287.         //        };
  288.         //
  289.         // Since kResPrompt #130 is included automatically,
  290.         // you do not need to include it in your own data.
  291.  
  292.  
  293. resource kResPrompt (130, "Panel prompts", purgeable) {
  294.     131,    // First prompt
  295.     132,    // Second prompt
  296.     133,    // Third prompt
  297.     134,    // Fourth prompt
  298. };
  299.  
  300. resource 'TEXT' (131, Purgeable) {
  301.     "To begin, click the right arrow."
  302. };
  303.  
  304. resource 'TEXT' (132, Purgeable) {
  305.     "Do this step, then click the right arrow."
  306. };
  307.  
  308. resource 'TEXT' (133, Purgeable) {
  309.     "Do this step, then you're finished."
  310. };
  311.  
  312. resource 'TEXT' (134, Purgeable) {
  313.     "After making your choices, click the right arrow."
  314. };
  315.  
  316. #endif __PANEL_PROMPTS__
  317.  
  318. #ifndef __BUTTONS__
  319.  
  320. //    -----------------------------------------------------------------------
  321. // Huh? button definition
  322.  
  323.         // When the topic script indicates a Huh? button
  324.         // for one of the optional PreWin buttons, this
  325.         // resource is used to define it.  In fact, the
  326.         // kHuhBtnId is what is used in the topic script
  327.         // to indicate a Huh? button.  We include a kResEvent
  328.         // for the Huh? button to define it's action.  To
  329.         // redefine its action, modify the kResEvent.
  330.  
  331. resource kResEvent (kHuhBtnEventId, "Huh? action", purgeable)
  332. {
  333.     self,                // target
  334.     'help',                // class
  335.     'dhuh',                // event id
  336.     none,                // optional data, key='IOPT", not used.
  337.     none,                // optional key not used.
  338.     none,                // optional data not used (string).
  339. };
  340.  
  341. resource kResPreWinBtn (kHuhBtnId, "Huh? button", purgeable)
  342. {
  343.     101,                // off-up
  344.     111,                // on-down
  345.     121,                // dimmed
  346.     kHuhBtnEventId,        // Apple event
  347.     moveable,            
  348.     kHuhBtnId            // 'STR ' ID of balloon text, since button is moveable
  349. };
  350.  
  351. resource 'STR ' ( kHuhBtnId, "Huh? Btn Ballon Text", purgeable)
  352. {
  353.     "Click here if you're confused about what's on this panel."
  354. };
  355.     
  356. //    -----------------------------------------------------------------------
  357. // Go Start button definition
  358.  
  359.         // Just Like for the huh button, this button goes
  360.         // back to the access window
  361.  
  362. resource kResEvent (kGoStartBtnEventId, "Go Start Action", purgeable)
  363. {
  364.     self,                // target
  365.     'help',                // class
  366.     'stac',                // event id
  367.     none,                // optional data, key='IOPT", not used.
  368.     none,                // optional key not used.
  369.     none,                // optional data not used (string).
  370. };
  371.  
  372. resource kResPreWinBtn (kGoStartBtnId, "Go Start Button", purgeable)
  373. {
  374.     103,                // off-up
  375.     113,                // on-down
  376.     123,                // dimmed
  377.     kGoStartBtnEventId,    // Apple event
  378.     moveable,
  379.     kGoStartBtnId        // 'STR ' ID of balloon text, since button is moveable
  380. };
  381.  
  382. // 09-Mar-93 1.0a16 JRP    Revise balloon wording per Melissa.
  383. resource 'STR ' ( kGoStartBtnId, "Go Start Btn Ballon Text", purgeable)
  384. {
  385.     "Click here to restart this session."
  386. };
  387.  
  388. // Huh and Go Start Button Graphics
  389.  
  390. include "Buttons.rsrc" not 'ckid';
  391.  
  392. #endif __BUTTONS__
  393.